package generator.mapper;

import java.io.Serializable;

/**
 * 
 * @TableName tb_hotel
 */
public class TbHotel implements Serializable {
    /**
     * 酒店id
     */
    private Long id;

    /**
     * 酒店名称
     */
    private String name;

    /**
     * 酒店地址
     */
    private String address;

    /**
     * 酒店价格
     */
    private Integer price;

    /**
     * 酒店评分
     */
    private Integer score;

    /**
     * 酒店品牌
     */
    private String brand;

    /**
     * 所在城市
     */
    private String city;

    /**
     * 酒店星级，1星到5星，1钻到5钻
     */
    private String starName;

    /**
     * 商圈
     */
    private String business;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 酒店图片
     */
    private String pic;

    private static final long serialVersionUID = 1L;

    /**
     * 酒店id
     */
    public Long getId() {
        return id;
    }

    /**
     * 酒店id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 酒店名称
     */
    public String getName() {
        return name;
    }

    /**
     * 酒店名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 酒店地址
     */
    public String getAddress() {
        return address;
    }

    /**
     * 酒店地址
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 酒店价格
     */
    public Integer getPrice() {
        return price;
    }

    /**
     * 酒店价格
     */
    public void setPrice(Integer price) {
        this.price = price;
    }

    /**
     * 酒店评分
     */
    public Integer getScore() {
        return score;
    }

    /**
     * 酒店评分
     */
    public void setScore(Integer score) {
        this.score = score;
    }

    /**
     * 酒店品牌
     */
    public String getBrand() {
        return brand;
    }

    /**
     * 酒店品牌
     */
    public void setBrand(String brand) {
        this.brand = brand;
    }

    /**
     * 所在城市
     */
    public String getCity() {
        return city;
    }

    /**
     * 所在城市
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * 酒店星级，1星到5星，1钻到5钻
     */
    public String getStarName() {
        return starName;
    }

    /**
     * 酒店星级，1星到5星，1钻到5钻
     */
    public void setStarName(String starName) {
        this.starName = starName;
    }

    /**
     * 商圈
     */
    public String getBusiness() {
        return business;
    }

    /**
     * 商圈
     */
    public void setBusiness(String business) {
        this.business = business;
    }

    /**
     * 纬度
     */
    public String getLatitude() {
        return latitude;
    }

    /**
     * 纬度
     */
    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    /**
     * 经度
     */
    public String getLongitude() {
        return longitude;
    }

    /**
     * 经度
     */
    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    /**
     * 酒店图片
     */
    public String getPic() {
        return pic;
    }

    /**
     * 酒店图片
     */
    public void setPic(String pic) {
        this.pic = pic;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbHotel other = (TbHotel) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
            && (this.getBrand() == null ? other.getBrand() == null : this.getBrand().equals(other.getBrand()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getStarName() == null ? other.getStarName() == null : this.getStarName().equals(other.getStarName()))
            && (this.getBusiness() == null ? other.getBusiness() == null : this.getBusiness().equals(other.getBusiness()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getPic() == null ? other.getPic() == null : this.getPic().equals(other.getPic()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getBrand() == null) ? 0 : getBrand().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getStarName() == null) ? 0 : getStarName().hashCode());
        result = prime * result + ((getBusiness() == null) ? 0 : getBusiness().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getPic() == null) ? 0 : getPic().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", address=").append(address);
        sb.append(", price=").append(price);
        sb.append(", score=").append(score);
        sb.append(", brand=").append(brand);
        sb.append(", city=").append(city);
        sb.append(", starName=").append(starName);
        sb.append(", business=").append(business);
        sb.append(", latitude=").append(latitude);
        sb.append(", longitude=").append(longitude);
        sb.append(", pic=").append(pic);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}